#ifndef SOUND_OUTPUT_H_
# define SOUND_OUTPUT_H_

# ifdef HAVE_CONFIG_H
#  include <config.h>
# endif

/* PA_SAMPLE_S16LE :
 * (Signed 16 integer bit PCM, little endian)
 * -> Type recupere en sortie du decodage du son
 * Utiliser la librairie pulse ici pour restituer le son en sortie
 * ->http://0pointer.de/lennart/projects/pulseaudio/doxygen/
 * pa_simple_get_latency(pa_simple *s, int *error)
 * pa_sink (...)
 */

# include <stdio.h>
# include <unistd.h>
# include <string.h>
# include <errno.h>
# include <fcntl.h>

# include <pulse/simple.h>
# include <pulse/error.h>
# include <pulse/gccmacro.h>


pa_simple		*initserver(pa_sample_format_t	format,
				    int			rate,
				    int			channels);

int			sendserver(pa_simple		*s,
				   int16_t		*data,
				   int			buf_size);

#endif /* !SOUND_OUTPUT_H_ */
